<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
   return view('web.HomePage');
});

Route::get('/sysIntroduce', function () {
   return view('web.SysIntroduce');
});

Route::get('/proIntroduce', function () {
   return view('web.ProIntroduce');
});

Route::get('/dynamicNews', function () {
   return view('web.DynamicNews');
});

Route::get('/connection', function () {
   return view('web.Connection');
});

Route::get('/register', function () {
   return view('web.Register');
});

Route::get('/login', function () {
   return view('web.Login');
});

Route::group(['prefix' =>'ajax', 'namespace'=>'AjaxRequest'], function(){
	Route::post('checkname','CheckNameController@store');
});

//Route::post('/ajax/checkname','\Ajax\AjaxRequestController@store');

/*Route::resource('/sysIntroduce','SysIntroduceController');
Route::resource('/proIntroduce','ProIntroduceController');
Route::resource('/dynamicNews','DynamicNewsController');
Route::resource('/connection','ConnectionController');
Route::resource('/register','RegisterController');
Route::resource('/login','LoginController');*/




